package com.bitoon.basketdudes.jpa;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Set;

@Entity
@Table(name = "pais", schema="central")
@NamedQueries({
    @NamedQuery(name = "Pais.findById", query = "SELECT p FROM Pais p WHERE p.id = :id")
})


public class Pais implements Serializable {
    private static final long serialVersionUID = 1L;

    @Id
    private String id;

    @Column(name="idioma_id")
    private String idioma_id;

    private String nombre;

    //bi-directional many-to-one association to Usuario
    @OneToMany(mappedBy="pais")
    private Set<Usuario> usuarios;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getIdiomaId() {
        return idioma_id;
    }

    public void setIdiomaId(String languageId) {
        this.idioma_id = languageId;
    }

    public String getNombre() {
        return nombre;
    }

    public void setNombre(String nombre) {
        this.nombre = nombre;
    }


}